package com.test;

import org.quartz.*;

import java.text.SimpleDateFormat;
import java.util.Date;

public class HelloJob  /*implements Job*/ {
   /* @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        SimpleDateFormat simpleDateFormat =new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date date = new Date();
        String dateStr = simpleDateFormat.format(date);
        System.out.println("执行任务的当前时间 " +  dateStr);
        *//*JobDetail jobDetail = jobExecutionContext.getJobDetail();
        JobDataMap jobDataMap = jobDetail.getJobDataMap();*//*

        System.out.println("jobDetail JobData  "+ jobExecutionContext.getJobDetail().getJobDataMap().get("job1"));
        System.out.println("Trigger JobData  "+ jobExecutionContext.getTrigger().getJobDataMap().get("job1"));
    }*/
}
